Resource and dependency based test case generation for RESTful Web services
نویسندگان
چکیده
Abstract Nowadays, RESTful web services are widely used for building enterprise applications. REST is not a protocol, but rather it defines set of guidelines on how to design APIs access and manipulate resources using HTTP over network. In this paper, we propose an enhanced search-based method automated system test generation services, by exploiting domain knowledge the handling resources. The proposed techniques use specific effective templates structure actions (i.e., ordered sequences calls) within individual in evolutionary search. action developed based semantics methods services’ addition, five novel sampling strategies with four resource-based sampling) cases that can one or more these templates. further supported new, specialized mutation operators mutation) search take into account generated cases. Moreover, dependency detect possible dependencies among tested mutations then information detected dependencies. To evaluate our approach, implemented as extension EvoMaster tool, conducted empirical study two selected baselines 7 open-source 12 synthetic services. Results show approach obtains significant improvement performance baselines, e.g., up + 130.7% relative (growing from 27.9% 64.3%) line coverage.
منابع مشابه
Specification - Based Test Case Generation Using Dependency
Testing represents a crucial phase in the development of a software system, often requiring considerable effort and resources. Our purpose is to offer a novel approach for generating test cases, based on requirements specification. We make use of scenarios used in the requirements specification phase, taking into consideration the various relationships that can exist between scenarios.
متن کاملAn Automatic Test Case Generation Framework for Web Services
BPEL (Business Process Execution Language) as a de-facto standard for web service orchestration has drawn particularly attention from researchers and industries. BPEL is a semi-formal flow language with complex features such as concurrency and hierarchy. To test a model thoroughly, we need to cover different execution scenarios. As is well known, it is tedious, time-consuming, and error prone t...
متن کاملResource-Driven CLP-Based Test Case Generation
Test Data Generation (TDG) aims at automatically obtaining test inputs which can then be used by a software testing tool to validate the functional behaviour of the program. In this paper, we propose resource-aware TDG, whose purpose is to generate test cases (from which the test inputs are obtained) with associated resource consumptions. The framework is parametric w.r.t. the notion of resourc...
متن کاملBatched Transactions for RESTful Web Services
In this paper, we propose a new transaction processing system for RESTful Web services; we describe a system architecture and algorithms. Contrary to other approaches, Web services do not require any changes to be used with our system. The system is transparent to non-transactional clients. We achieve that by introducing an overlay network of mediators and proxy servers, and restricting transac...
متن کاملAUTOMATIC TEST CASE GENERATION of WEB SERVICES USING CLASS DIAGRAM
Web services are formally and fully described using an XML-based document called the Web Services Description Language (WSDL) document. WSDL documents fully describe a Web service, including the operations that it supports, the messages that it exchanges, and the data types that these messages use. The best way to approach a WSDL document is to understand that different XML elements take respon...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
ژورنال
عنوان ژورنال: Empirical Software Engineering
سال: 2021
ISSN: ['1382-3256', '1573-7616']
DOI: https://doi.org/10.1007/s10664-020-09937-1